<?php


namespace app\home\service;
use app\home\model\SetModel;

class SetService extends SetModel
{
   
    public function getMiniInfo($type, $data)
    {  // Session : login_miniID
        if(empty($data) or empty($type)){
            return false;
        }
        switch ($type) {
            case 'uid_name':
               return $this->selectInfo('seleteMini_info', $data);
                break;
            case 'time_price':
                return $this->selectInfo('selectTemp_addtime', $data);  //需要uid和temp_id
                break;
        }
        return false;
    }
    
}